<template>
  <button @click="handleClick">子组件-自增</button>
</template>

<script>
export default {
  name: "IncBtn",
  props: [],
  emits: ["test"],
  setup(props, { emit }) {
    const handleClick = () => {
      emit("add");
    };
    return {
      handleClick,
    };
  },
};
</script>

<style scoped></style>
